/**
 * Copyright 2009 Joe LaPenna
 */

package com.zchat.api.http;

import org.apache.http.NameValuePair;
import org.apache.http.client.methods.HttpGet;
import org.apache.http.client.methods.HttpPost;
import org.apache.http.client.methods.HttpRequestBase;

import com.zchat.api.error.ZChatConnectionException;
import com.zchat.api.error.ZChatException;

import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.util.Map;

/**
 * @author Oliverzhu
 */
public interface HttpApi {

    abstract public InputStream doHttpRequest(HttpRequestBase httpRequest) throws 
    	ZChatException,IOException;

    abstract public String doHttpPost(String url, NameValuePair... nameValuePairs)
            throws ZChatException,IOException;

    abstract public HttpGet createHttpGet(String url, NameValuePair... nameValuePairs);

    abstract public HttpPost createHttpPost(String url, NameValuePair... nameValuePairs);
    
}
